package com.vehicle.service;

import com.vehicle.bean.DataGridView;
import com.vehicle.bean.PageVo;
import com.vehicle.pojo.ApplyUse;
import com.vehicle.pojo.Check;
import com.vehicle.pojo.Driver;

import java.util.Date;
import java.util.List;

public interface ApplyUseService {

    //查询所有的用车申请并分页
    DataGridView findAllApplyUse(PageVo pageVo,String status);

    //删除用车申请
    void deApplyUse(Integer applyid);

    //添加用车申请
    void applyAdd(ApplyUse applyUse);

    //查询所有司机信息
    List<Driver> findAllDriver();

    //根据id查询申请信息
    ApplyUse selectApplyUseById(Integer applyid);

    //更改申请表状态
    void updateApplyUseState(Integer applyid,Integer state);

    //出车时添加车辆
    void updateCarPlateByApplyId(String carplate, Integer applyid, Date sendCarTime,String sendCarUser);
}
